<%@ include file="../header.jsp" %>
	<div id="content">
				<h3>Lista de productos vendidos por usted</h3>
				<table border="1" bgcolor="lightBlue">
					<c:forEach items="${soldTransactionList}" var="transaction">
					<tr>
					<td>
						<span>
						<a href="<c:url value="viewProduct"><c:param name="id" value="${transaction.product.id}" /></c:url>">
							<c:out value="${transaction.product.name}" /> </a>
						<c:choose>
							<c:when test="${fn:contains(transaction.product.class, 'Auction') == true}">
								<span><font color="lightCoral">es una subasta</font></span>
							</c:when>
							<c:otherwise>
								<span><font color="Green">es un producto</font></span>
							</c:otherwise>
						</c:choose>	
						<br>
							Comprador: <c:out value="${transaction.buyer.username}" />  ||
							Cantidad: <c:out value="${transaction.quantity}"/>   ||
							Valor Total: <c:out value="${transaction.quantity * transaction.product.price}"/>   ||
							Fecha: <fmt:formatDate type="date" value="${transaction.date}"/><br>
						</span>	
					</td>
					</tr>
				</c:forEach>
				</table>
	</div>
<%@ include file="../footer.jsp" %>